﻿
#pragma once

#include "efsw/efsw.hpp"

using umap_ss = std::unordered_map<std::string, std::string>;

class FileWatcher
{
public:
    FileWatcher()
    {
    }

    void watch(const std::string& directory, efsw::FileWatchListener* watcher)
    {
        fileWatcher.addWatch(directory, watcher, false);
        fileWatcher.watch();
    }

private:
    efsw::FileWatcher fileWatcher;
};

FileWatcher* newFileWatcher(const char* logpath, umap_ss keywords, int skipN, const char* line_handle);
